#include <stdio.h>

int strcmp(const char *lhs, const char *rhs)
{
	while (*lhs == *rhs)
	{
		if (*lhs == '\0')
			return 0;
		++lhs, ++rhs;
	}
	return *lhs - *rhs > 0 ? 1 : -1;
}

int main()
{
	printf("%d\n", strcmp("universe", "universal"));
	return 0;
}
